﻿<u:UButton x:Class="UTable.Objects.Controls.UImageButton"
           x:Name="ubutton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core">
    <u:UGrid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <u:UImage Source="{Binding ElementName=ubutton, Path=ButtonImageSource}" Stretch="None" HorizontalAlignment="Center" Margin="20 20 20 5" />
        <u:UTextBlock x:Name="block" Grid.Row="1"  Text="{Binding ElementName=ubutton, Path=Text}" HorizontalAlignment="Center"/>
    </u:UGrid>
</u:UButton>
